﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharpReview
{
    class SortByName : IComparer<StudentInfo>
    {
        public int Compare(StudentInfo x, StudentInfo y)
        {
            return x.name.CompareTo(y.name);
        }
    }
}
